{template 'common/header-base'}
{if $_W['template'] == 'black'}
<div class="skin-black" data-skin="black">
	{php $disabled_menu = pdo_getall('core_menu', array('group_name' => 'frame', 'is_system' => 1, 'is_display' => 0), array(), 'permission_name');	}
	<div class="head">
		<nav class="navbar navbar-default" role="navigation">
			<div class="container ">
				<div class="navbar-header">
					<a class="navbar-brand" href="{$_W['siteroot']}">
						<img src="{if !empty($_W['setting']['copyright']['blogo'])}{php echo tomedia($_W['setting']['copyright']['blogo'])}{else}./resource/images/logo/logo.png{/if}" class="pull-left" width="110px" height="35px">
					</a>
				</div>
				<div class="collapse navbar-collapse">
					<ul class="nav navbar-nav navbar-left">
						{if !in_array('account', array_keys($disabled_menu))}
						<li{if $_GPC['c'] == 'home' && $_GPC['do'] == 'platform' || $_GPC['c'] == 'account'} class="active"{/if}><a href="./index.php?c=home&a=welcome&do=platform&">公众号</a></li>
						{/if}
						{if !in_array('wxapp', array_keys($disabled_menu))}
						<li{if $_GPC['c'] == 'account'} class="active"{/if}><a href="./index.php?c=wxapp&a=display&do=home&" >小程序</a></li>
						{/if}
						{if !in_array('module', array_keys($disabled_menu))}
						<li{if $_GPC['c'] == 'module'} class="active"{/if}><a href="./index.php?c=module&a=display&" >应用</a></li>
						{/if}
						<li{if $_GPC['c'] == 'system'} class="active"{/if}><a href="./index.php?c=home&a=welcome&do=system&" >系统管理</a></li>
						{if $_W['isfounder'] && !user_is_vice_founder()}
						<li{if $_GPC['c'] == 'cloud'} class="active"{/if}><a href="./index.php?c=cloud&a=upgrade&" >站点管理</a></li>
						{if !in_array('advertisement', array_keys($disabled_menu))}
						<li{if $_GPC['c'] == 'advertisement'} class="active"{/if}><a href="./index.php?c=advertisement&a=content-provider&" >广告联盟</a></li>
						{/if}
						<li><a href="http://wei8848.com" target="_blank">应用市场</a></li>
						{/if}
						{if !in_array('help', array_keys($disabled_menu))}
						<li{if $_GPC['c'] == 'help'} class="active"{/if}><a href="./index.php?c=help&a=display&" target="_blank">帮助系统</a></li>
						{/if}
						{if !in_array('store', array_keys($disabled_menu))}
						<li{if $_GPC['m'] == 'store'} class="active"{/if}><a href="./index.php?c=home&a=welcome&do=ext&m=store" >商城</a></li>
						{/if}
					</ul>
					<ul class="nav navbar-nav navbar-right">
						<li class="dropdown">
							<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="wi wi-user color-gray"></i>{$_W['user']['username']} <span class="caret"></span></a>
							<ul class="dropdown-menu color-gray" role="menu">
								<li>
									<a href="{url 'user/profile'}" target="_blank"><i class="wi wi-account color-gray"></i> 我的账号</a>
								</li>
								<li class="divider"></li>
								{if $_W['isfounder'] && !user_is_vice_founder()}
								<li><a href="{url 'cloud/upgrade'}" target="_blank"><i class="wi wi-update color-gray"></i> 自动更新</a></li>
								{/if}
								<li><a href="{url 'system/updatecache'}" target="_blank"><i class="wi wi-cache color-gray"></i> 更新缓存</a></li>
								<li class="divider"></li>
								<li>
									<a href="{url 'user/logout'}"><i class="fa fa-sign-out color-gray"></i> 退出系统</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</nav>
	</div>

<div class="main">
	<div class="container">
		<div class="panel panel-content main-panel-content ">
			<div class="panel-body clearfix main-panel-body ">
				<div class="left-menu">
					<div class="left-menu-content">
						<div class="left-menu-top skin-black">
							<div class="account-info-name">
								<a href="./index.php?c=home&a=welcome&do=account&"><i class="wi wi-back-circle"></i></a>
								<span class="account-name"><a href="./index.php?c=home&a=welcome&do=account&">商城</a></span>
							</div>
						</div>
						{loop $this->left_menus $key $menus}
						{if $key == 'store_manage' && !($_W['isfounder'] && !user_is_vice_founder())}
							{php continue;}
						{/if}
						<div class="panel panel-menu">
							<div class="panel-heading">
								<span class="">{$menus['title']}</span>
							</div>
							<ul class="list-group">
								{loop $menus['menu'] $menu_key $menu}
								{if $key == 'store_goods' && !empty($_W['setting']['store'][$menu_key])}
									{php continue;}
								{/if}
								<li class="list-group-item {if ($_GPC['type'] == $menu['type'] && $_GPC['do'] == 'goodsbuyer') || ($_GPC['do'] == $menu['type'] && $_GPC['do'] != 'goodsbuyer')}active{/if}">
									<a href="{$menu['url']}" class="text-over" >
										<i class="{$menu['icon']}"></i> {$menu['title']}</a>
								</li>
								{/loop}
							</ul>
						</div>
						{/loop}
					</div>
				</div>
				<div class="right-content">
{else}
<div class="head">
<nav class="navbar navbar-default" role="navigation">
<div class="container ">
	<div class="navbar-header">
		<a class="navbar-brand" href="{$_W['siteroot']}">
			<img src="{if !empty($_W['setting']['copyright']['blogo'])}{php echo tomedia($_W['setting']['copyright']['blogo'])}{else}./resource/images/logo/logo.png{/if}" class="pull-left" width="110px" height="35px">
		</a>
	</div>
	{php $disabled_menu = pdo_getall('core_menu', array('group_name' => 'frame', 'is_system' => 1, 'is_display' => 0), array(), 'permission_name');	}
	<div class="collapse navbar-collapse">
		<ul class="nav navbar-nav navbar-left">
			{if !in_array('account', array_keys($disabled_menu))}
			<li{if $_GPC['c'] == 'home' && $_GPC['do'] == 'platform' || $_GPC['c'] == 'account'} class="active"{/if}><a href="./index.php?c=home&a=welcome&do=platform&">公众号</a></li>
			{/if}
			{if !in_array('wxapp', array_keys($disabled_menu))}
			<li{if $_GPC['c'] == 'account'} class="active"{/if}><a href="./index.php?c=wxapp&a=display&do=home&" >小程序</a></li>
			{/if}
			{if !in_array('module', array_keys($disabled_menu))}
			<li{if $_GPC['c'] == 'module'} class="active"{/if}><a href="./index.php?c=module&a=display&" >应用</a></li>
			{/if}
			<li{if $_GPC['c'] == 'system'} class="active"{/if}><a href="./index.php?c=home&a=welcome&do=system&" >系统管理</a></li>
			{if $_W['isfounder'] && !user_is_vice_founder()}
			<li{if $_GPC['c'] == 'cloud'} class="active"{/if}><a href="./index.php?c=cloud&a=upgrade&" >站点管理</a></li>
			{if !in_array('advertisement', array_keys($disabled_menu))}
			<li{if $_GPC['c'] == 'advertisement'} class="active"{/if}><a href="./index.php?c=advertisement&a=content-provider&" >广告联盟</a></li>
			{/if}
			<li><a href="http://wei8848.com" target="_blank">应用市场</a></li>
			{/if}
			{if !in_array('help', array_keys($disabled_menu))}
			<li{if $_GPC['c'] == 'help'} class="active"{/if}><a href="./index.php?c=help&a=display&" target="_blank">帮助系统</a></li>
			{/if}
			{if !in_array('store', array_keys($disabled_menu))}
			<li{if $_GPC['m'] == 'store'} class="active"{/if}><a href="./index.php?c=home&a=welcome&do=ext&m=store" >商城</a></li>
			{/if}
		</ul>
		<ul class="nav navbar-nav navbar-right">
			<li class="dropdown">
				<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="wi wi-user color-gray"></i>{php echo $_W['username']} <span class="caret"></span></a>
				<ul class="dropdown-menu color-gray" role="menu">
					<li>
						<a href="{url 'user/profile'}" target="_blank"><i class="wi wi-account color-gray"></i> 我的账号</a>
					</li>
					<li class="divider"></li>
					{if $_W['isfounder'] && !user_is_vice_founder()}
					<li><a href="{url 'cloud/upgrade'}" target="_blank"><i class="wi wi-update color-gray"></i> 自动更新</a></li>
					{/if}
					<li><a href="{url 'system/updatecache'}" target="_blank"><i class="wi wi-cache color-gray"></i> 更新缓存</a></li>
					<li class="divider"></li>
					<li>
						<a href="{url 'user/logout'}"><i class="fa fa-sign-out color-gray"></i> 退出系统</a>
					</li>
				</ul>
			</li>
		</ul>
	</div>
</div>
</nav>
</div>

<div class="main">
<div class="container">
<a href="javascript:;" class="js-big-main button-to-big color-gray" title="加宽">宽屏</a>
<div class="panel panel-content main-panel-content">
	<div class="content-head panel-heading main-panel-heading">
		<span class="font-lg"><i class="wi wi-store"></i> 商城</span></div>
	<div class="panel-body clearfix main-panel-body">
		<div class="left-menu">
			<div class="left-menu-content">
				{loop $this->left_menus $key $menus}
				{if $key == 'store_manage' && !($_W['isfounder'] && !user_is_vice_founder())}
					{php continue;}
				{/if}
				<div class="panel panel-menu">
					<div class="panel-heading">
						<span class="no-collapse">{$menus['title']}<i class="wi wi-appsetting pull-right setting"></i></span>
					</div>
					<ul class="list-group">
						{loop $menus['menu'] $menu_key $menu}
						{if $key == 'store_goods' && !empty($_W['setting']['store'][$menu_key])}
							{php continue;}
						{/if}
						<li class="list-group-item {if ($_GPC['type'] == $menu['type'] && $_GPC['do'] == 'goodsbuyer') || ($_GPC['do'] == $menu['type'] && $_GPC['do'] != 'goodsbuyer')}active{/if}">
							<a href="{$menu['url']}" class="text-over" >
								<i class="{$menu['icon']}"></i> {$menu['title']}</a>
						</li>
						{/loop}
					</ul>
				</div>
				{/loop}
			</div>
		</div>
		<div class="right-content">
{/if}